<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="box"> 
			<img v-bind:src="url" :width='w'/>
			<img :src="url" :width='w'/>
		</div>
		<script type="text/javascript">
			new Vue({
				el: '#box',
				data: {
				   url:'logo.png',
				   w:'100px'
				},
				methods:{
					show:function(){
						alert("你按回车了")
					}
				}
			})
		</script>
	</body>
</html>
